//
//  StoreDetailNoticeView.m
//  BaseProject
//
//  Created by 王洋 on 2020/7/15.
//  Copyright © 2020 王洋. All rights reserved.
//

#import "StoreDetailNoticeView.h"

@implementation StoreDetailNoticeView

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.01 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        
        [self.closeBtn pp_clipCorners:UIRectCornerAllCorners radius:self.closeBtn.frame.size.height/2];
        
    });
}

- (void)setItemTitle:(NSString *)itemTitle {
    self.titleLab.text = itemTitle;
}

- (void)setItemContent:(NSString *)itemContent {
    self.contentTextView.text = itemContent;
}

- (IBAction)closeAction:(id)sender {
    if (self.StoreDetailNoticeViewBlock) {
        self.StoreDetailNoticeViewBlock();
    }
}

@end
